***** H2 - Parents hypothesis - Gender

		* Appendix S - Table  1 - Parents hypothesis - Economy - Government - control gender  
		
		clear all
		
		cd "${data}"	
		
		use data_ess.dta, clear
		
		* Declare survey design for dataset
		svyset, clear 
		svyset country_code [weight=pspwght], strata(essround)

		* Define significance stars for tables
		global stars "+ 0.10 * 0.05 ** 0.01 *** 0.001"
		
		eststo clear

		
		* Binary - eco 
		eststo m1: svy: reg stfeco b0.dummy1834 agea income b0.unemployed education i.female unemployment_rate i.essround i.country_code if agea>34 // restricted sample
			
		* Binary - gov	
		eststo m2: svy: reg stfgov b0.dummy1834 agea income b0.unemployed education i.female unemployment_rate i.essround i.country_code  if agea>34  // restricted sample
		
		* Categorical - eco 
		eststo m3: svy: reg stfeco b2.cohabitation_multiple agea income b0.unemployed education i.female unemployment_rate i.essround i.country_code if agea>34 // restricted sample
				
		* Categorical - gov 		
		eststo m4: svy: reg stfgov b2.cohabitation_multiple agea income b0.unemployed education i.female unemployment_rate i.essround i.country_code  if agea>34  // restricted sample

		esttab m1 m2 m3 m4 using ${tables}/appendixS.tex, ///
			nomtitles booktabs replace ///
			indicate("Country FE = *.country_code" "Year FE = *.essround", labels("\checkmark" "")) ///
			stats(N r2, fmt(%9.0fc %9.2fc) labels("Observations" "R-squared")) ///
			nobaselevels substitute("=1" "") nogap compress nonotes b(2) se(2) starlevels( ${stars}) label mlabels("Model 1" "Model 2" "Model 3" "Model 4" )

		* Appendix T - Table  1 - Parents hypothesis - Economy - Government - Interaction with gender  
			
	eststo clear
			
		* Binary - eco 
		eststo m1: svy: reg stfeco b0.dummy1834##b0.female agea income b0.unemployed education unemployment_rate i.essround i.country_code if agea>34 // restricted sample
			
		* Binary - gov	
		eststo m2: svy: reg stfgov b0.dummy1834##b0.female  agea income b0.unemployed education unemployment_rate i.essround i.country_code  if agea>34  // restricted sample
		
		* Categorical - eco 
		eststo m3: svy: reg stfeco b2.cohabitation_multiple##b0.female agea income b0.unemployed education unemployment_rate i.essround i.country_code if agea>34 // restricted sample
				
		* Categorical - gov 		
		eststo m4: svy: reg stfgov b2.cohabitation_multiple##b0.female agea income b0.unemployed education unemployment_rate i.essround i.country_code  if agea>34  // restricted sample

		esttab m1 m2 m3 m4 using ${tables}/appendixT.tex, ///
			nomtitles booktabs replace ///
			indicate("Country FE = *.country_code" "Year FE = *.essround", labels("\checkmark" "")) ///
			stats(N r2, fmt(%9.0fc %9.2fc) labels("Observations" "R-squared")) ///
			nobaselevels substitute("=1" "") nogap compress nonotes b(2) se(2) starlevels( ${stars}) label mlabels("Model 1" "Model 2" "Model 3" "Model 4" )
			

			
